<admintpl file="header" />
</head>
<body class="J_scroll_ixed">
    <div class="wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('AppUser/index')}">聊友列表</a></li>
			<li><a href="{:U('AppUser/add')}">新增聊友</a></li>
		</ul>
        <div class="container">
                <div class="panel-group" id="accordion">
                  <div class="panel panel-default" style="margin-bottom: 20px;">
                    <div class="panel-heading">
                      <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion"  href="#collapseOne">聊友基本信息 </a>
                      </h4>
                     </div>
                    <div id="collapseOne" class="panel-collapse collapse in">
                      <div class="panel-body">  
                        <table class="table" id="table1">
                                <caption>聊友基本信息</caption>
                                      <tbody>
                                         <tr>
                                            <td width="8%">互动id</td>
                                            <td width="32%"><input value="{$model.user_uniq_id}" disabled class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                            <td width="8%">用户账号</td>
                                            <td width="32%"><input value="{$model.user_account}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                         </tr>
                                         <tr>
                                            <td width="8%">账号类型</td>
                                            	<?php
                                            		$type=array('1'=>'手机号码','2'=>'qq 登录','3'=>'微信登录','4'=>'新浪微博');
                                            		$sex=array('1'=>'男','2'=>'女','3'=>'保密');
                                            	?>
                                            <td width="32%"><input  value="{$type[$model['type']]}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>

                                            <td width="8%">昵称</td>
                                            <td width="32%"><input  value="{$model.nick}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                         </tr>
                                          <tr>
                                            <td width="8%">性别</td>
                                            <td width="32%"><input  value="{$sex[$model['sex']]}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                            <td width="8%">签名</td>
                                            <td width="32%"><input  value="{$model.signature}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                         </tr>
                                         
                                         <tr>
                                            <td width="8%">等级</td>
                                            <td width="32%"><input  value="{$model.grade}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                            <td width="8%">互动id</td>
                                            <td width="32%"><input  value="{$model.user_uniq_id}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                         </tr>
										
										 <tr>
                                            <td width="8%">余额</td>
                                            <td width="32%"><input  value="{$model.balance}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                            <td width="8%">创建时间</td>
                                            <td width="32%"><input  value="{$model.create_time}" class="form-control input-sm" type="text"></td>
                                            <td width="10%"></td>
                                         </tr>
                                         
                                      </tbody>
                            </table>
                      </div>
                    </div>
                  </div>


                  <div class="panel panel-default" style="margin-bottom: 20px;">
                    <div class="panel-heading">
                      <h4 class="panel-title">
                        <a data-toggle="collapse" data-parent="#accordion" href="#collapseTwo">我的群</a>             
                      </h4>
                    </div>
                    <div id="collapseTwo" class="panel-collapse collapse in">
                          <div class="panel-body">
                            <table class="table table-striped table-bordered table-hover table-condensed" id="table2">
                                <caption>我的群</caption>
                                        <thead>
                                        	<th>序号</th>
                                        	<th>群互动id</th>
                                        	<th>环信组id</th>
                                            <th>群昵称</th>
                                            <th>我的职位</th>
                                        </thead>
                                        <?php
                                            $count=0;
                                            $level=array('1'=>'群主','2'=>'副群主','3'=>'临时管理员','4'=>'普通成员');
                                        ?>
                                        <tbody>
                                         <foreach name='group_list' item='vo' key='key'>
                                            <?php
                                                $count=$count+1;
                                            ?>
                                            <tr>
                                            	<td>{$count}</td>
                                                <td>{$vo.group_uniq_id}</td>
                                                <td>{$vo.huanxing_groupid}</td>
                                                <td>{$vo.groupname}</td>
                                                <td>{$level[$vo['level']]}</td>
                                            </tr>
                                         </foreach>
                                      </tbody>
                            </table>
                          </div>
                      </div>
                    </div>

                    
                  </div>
            </div>
        </div>
<script type="text/javascript">
  $(function(){
    $("input").attr('disabled',"disabled");
  });
</script>  
</body>
</html> 